#include <stdio.h>

int main(int argc, char *argv[]) {

    int size;
    scanf("%d", &size);
    int nums[size];
    for (size_t i = 0; i < size; i++)
    {
        scanf("%d ", &nums[i]);
    }
    
    int num,index=0;

    scanf("%d", &num);
    for (size_t i = 0; i < size; i++)
    {
        if(num==nums[i]){
            index = i;
            break;
        }
    }

    printf("%d", index+1);

    return 0;
}